
message('build emulex drive lib')
# 添加源文件
emulex_sources = files('emulex_abi.cpp', 'emulex_card.cpp', 'emulex_port.cpp','emulex_om.cpp') + interface_sources



# 创建共享库
libemulex = shared_library(
    'emulex',
    emulex_sources,
    include_directories: include_dirs + boardcom_interface_inc,
    name_prefix: 'lib',
    install: true,
    install_dir: drivers_install_dir,
    dependencies: [dev_deps, libpldm_over_mctp_dep, libmctp_dep, libimu_dep, libmcpp_deps],
)

if build_tests and meson_build
  custom_target(
    'copy_libemulex',
    output: 'copy_libemulex',
    command: ['cp', libemulex.full_path(), drivers_install_dir],
    depends: libemulex,
    build_by_default: true,
  )
endif